{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="#">导航栏</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a class="btn btn-primary" href="{php echo web_url('dashboard/nav/edit')}">添加导航</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="panel panel-default">
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="text-center" width="10%">图片</th>
							<th class="text-center" width="5%">显示顺序</th>
							<th class="text-center" width="20%">标题</th>
							<th class="text-center" width="30%">连接</th>
							<!--<th class="text-center" width="10%">位置</th>-->
							<th class="text-center" width="10%">状态</th>
							<th class="text-center" width="15%">操作</th>
						</tr>
					</thead>
					<tbody>
						{loop $navs $nav}
							<tr class="text-center">
								<td><img class="scrollLoading" src="{php echo tomedia($nav['thumb'])}" data-url="{php echo tomedia($nav['thumb'])}" onerror="this.src='{php echo tomedia($nav['thumb'])}'" height="50" width="50"/></td>
								<td>{$nav['displayorder']}</td>
								<td><span {if $nav['color']} style="color: {$nav['color']};" {/if}>{$nav['name']}</span></td>
								<td class="text-lue">{$nav['link']}</td>
								<!--<td class="text-lue">{if $nav['type'] == 0 || empty($nav['type'])}首页{else if $nav['type'] == 1}一卡通{/if}</td>-->
								<td>{php echo tpl_change_status('dashboard/nav/changeStatus&id='.$nav['id'],$nav['enabled'])}</td>
								<td>
									<a class="btn btn-sm btn-warning" href="{php echo web_url('dashboard/nav/edit',array('id'=>$nav['id']))}">编辑</a>
									<a class="btn btn-sm btn-danger" data-toggle="ajaxRemove" href="{php echo web_url('dashboard/nav/delete',array('id'=>$nav['id']))}" data-confirm="确定删除当前信息?">删除</a>
								</td>
							</tr>
						{/loop}
					</tbody>
				</table>
			</div>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">

			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}